package com.ruoyi.hcrf.controller.storage;



import com.ruoyi.hcrf.domain.service.storage.StorageRegionService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 库位区域
 * 
 * @author wanglf
 */
@RestController
@RequestMapping("/storage/region")
@Api(tags = "库位区域接口")
public class StorageRegionController
{
    @Autowired
    private StorageRegionService storageRegionService;

    /**
     * 获取库位区域列表（分页）
     */
//    @ApiOperation(value = "获取库位区域列表（分页）")
//    @RequestMapping(value = "/page" , method = RequestMethod.POST)
//    public CommonResult page(@RequestBody StorageRegionPageInBo pageInBo)
//    {
//        Page<StorageRegion> result = storageRegionService.selectPage(pageInBo);
//        return CommonResult.success(result);
//    }

    /**
//     * 获取库位区域列表
//     */
//    @ApiOperation(value = "获取库位区域列表")
//    @RequestMapping(value = "/list" , method = RequestMethod.GET)
//    public CommonResult list()
//    {
//        List<StorageRegion> result = storageRegionService.list();
//        return CommonResult.success(result);
//    }
//
//    /**
//     * 新增库位区域
//     */
//    @ApiOperation(value = "新增库位区域")
//    @RequestMapping(value = "/save" , method = RequestMethod.POST)
//    public CommonResult save(@RequestBody StorageRegionCreateInBo createInBo)
//    {
//        Boolean result = storageRegionService.insertStorageRegion(createInBo);
//        return CommonResult.success(result);
//    }
//
//    /**
//     * 修改库位区域
//     */
//    @ApiOperation(value = "修改库位区域")
//    @RequestMapping(value = "/update" , method = RequestMethod.POST)
//    public CommonResult update(@RequestBody StorageRegionCreateInBo createInBo)
//    {
//        Boolean result = storageRegionService.updateStorageRegion(createInBo);
//        return CommonResult.success(result);
//    }
//
//    /**
//     * 删除库位（逻辑删除）
//     */
//    @ApiOperation(value = "删除库位（逻辑删除）")
//    @RequestMapping(value = "/delete/{regionId}" , method = RequestMethod.GET)
//    public CommonResult del(@PathVariable(value = "regionId", required = false) Long regionId)
//    {
//        boolean delFlag = storageRegionService.removeById(regionId);
//        return CommonResult.success(delFlag);
//    }


}
